package com.simple.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.simple.entity.entity.UserMcp;
import com.simple.mapper.UserMcpMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @desc
 * @Author Simple
 * @Date 2025/7/8 23:17
 **/
@Slf4j
@Service
public class UserMcpService extends ServiceImpl<UserMcpMapper, UserMcp> {

    public List<UserMcp> searchEnableByUserId(Long userId) {
        return this.lambdaQuery()
                .eq(UserMcp::getUserId, userId)
                .eq(UserMcp::getIsEnable, true)
                .eq(UserMcp::getIsDeleted, false)
                .list();
    }
}
